< previous page page_290 next page >

Page 290
8160-0290a.gif
Figure 14.2
The DataList control in the toolbox.
DataList Common Properties
Youll use a few different properties to populate this control versus the standard list box control. The standard list box control must be populated manually using the List property at design time or by invoking the AddItem method at runtime. The DataList control, like the DataCombo control, can be loaded via a connected ADO data control. This is controlled by the properties listed in Table 14.2.
Table 14.2 DataList Common Properties.
PropertyDescription
RowSourceThe name of the data control used to populate the DataList control. You can create a data control just for loading this list box if you want. Of course, you could just use the same data control for loading the list as you use for the main data of your form.
ListFieldThe name of the field in the data control specified by the RowSource property used to populate the DataList control.
DataSourceThe name of the data control used when an update is made to the base table.
DataFieldThe name of the field in the SQL of the RecordSource property. This RecordSource property is the one located in the data control whose name you specified in the DataSource property.
BoundColumnThis field should match the field youre using in the DataField property, except this is the field that comes from the data control specified in the RowSource property.
MatchEntryThis field can be set to perform basic matching or extended drill-downtype matching when youre searching for values in the DataList control.

 
< previous page page_290 next page >

If you like this book, buy it!